<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		
	</head>
	<body>
		<div id="div1">点我</div>
		<script>
			var oDiv = document.getElementById("div1");
			oDiv.onclick = function(){
				alert(1);
			}
		</script>
	</body>
</html>
